package com.zlsy.es.dianping.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhouliang
 * @date 2020/03/10
 **/
@Component
@Data
@ConfigurationProperties(prefix = "elasticsearch")
public class ElasticSearchProperties {

    public final static String PROTOCOL = "http";

    private List<EsAddress> addressList;

    @Data
    public static class EsAddress {
        private String ip;
    }
}
